LEX     = flex
YACC    = yacc
YFLAGS  = -d
LIBS    = -lJudy 
# CFLAGS	= -Wall -DNDEBUG -O3 -DJUDYERROR_NOTEST
CFLAGS	= -ggdb -DNDEBUG -Wall -pg
# for 32 bit compilation
# CFLAGS	= -ggdb -DNDEBUG -Wall -pg -L/home/baris/Downloads/judy32/lib/

OBJECTS = parser/owl2fsLexer.o parser/owl2fsParser.o model/initialization.o model/internal_kb.o model/utils.o  model/print_utils.o model/memory_utils.o normalization/normalization.o normalization/print_utils.o normalization/utils.o preprocessing/utils.o preprocessing/preprocessing.o completion/completion.o completion/utils.o completion/print_utils.o hierarchy/hierarchy.o hierarchy/print_utils.o util/queue.o

     
elc: $(OBJECTS) $(LIBS) 
parser/owl2fsLexer.o: parser/owl2fsLexer.l parser/owl2fsParser.c
parser/owl2fsParser.o: parser/owl2fsParser.y
model/initialization.o: model/initialization.c
model/internal_kb.o: model/internal_kb.c
model/utils.o: model/utils.c
model/print_utils.o: model/print_utils.c
model/memory_utils.o: model/memory_utils.c
normalization/normalized_kb.o: normalization/normalized_kb.c
normalization/normalization.o: normalization/normalization.c
normalization/utils.o: normalization/utils.c
normalization/print_utils.o: normalization/print_utils.c
preprocessing/utils.o: preprocessing/utils.c
preprocessing/preprocessing.o: preprocessing/preprocessing.c
completion/completion.o: completion/completion.c
completion/utils.o: completion/utils.c
completion/print_utils.o: completion/print_utils.c
hierarchy/hierarchy.o: hierarchy/hierarchy.c
hierarchy/print_utils.o: hierarchy/print_utils.c
util/queue.o: util/queue.c


clean:
	rm -f *.o elc parser/*.o model/*.o preprocessing/*.o normalization/*.o completion/*.o hierarchy/*.o util/*.o
